package cn.wolfcode.trip.base.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class MessageQueryObject extends QueryObject{
    private Integer  state;//消息是否已读的状态
    private Long authorId;//登录人id
    private Integer type;//用户查看哪中类型的消息
    @JsonFormat(pattern = "yyyy-MM HH:mm",timezone = "GMT-8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date seeTime;//用户查看消息的时间
    private Long senderId;//发送消息的人
}

